package com.gxa.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource("classpath:/systemConfig/sys.properties")
public class SystemConfig {

    /**
     * 上传路径
     */
    @Value("${upload.path}")
    private String uploadPath;

    @Value("${defaultIcon}")
    private String defaultIcon;

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getDefaultIcon() {
        return defaultIcon;
    }

    public SystemConfig setDefaultIcon(String defaultIcon) {
        this.defaultIcon = defaultIcon;
        return this;
    }
}